package cn.linstudy.feign;

import cn.linstudy.common.web.Result;
import cn.linstudy.domain.Product;
import cn.linstudy.feign.fallback.ProductFeignApiFallback;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description
 * @Author XiaoLin
 * @Date 2021/5/16 19:03
 */
@FeignClient(name = "product-service",fallback = ProductFeignApiFallback.class)
public interface ProductFeignApi {

  @RequestMapping("/product/queryByIds")
  Result<List<Product>> queryByIds(@RequestBody List<Long> ids);
}
